﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IMoving {

        /// <summary>
        /// Insert new MovingEnt
        /// </summary>
        /// <param name="item">MovingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(MovingEnt item);
        /// <summary>
        /// Update MovingEnt
        /// </summary>
        /// <param name="item">MovingEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(MovingEnt item);
        /// <summary>
        /// Delete a MovingEnt
        /// </summary>
        /// <param name="iD">ID of MovingEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all MovingEnt
        /// </summary>
        /// <returns>return a list of MovingEnt (empty list if no MovingEnt exists)</returns>
        List<MovingEnt> GetAll();
    }
}
